<?php  
class Controllermodulesearch extends Controller {
	protected function index() {
		$this->language->load('module/search');

      	$this->data['keyword'] = false;
      	$this->data['heading_title'] = $this->language->get('heading_title');
  		$this->data['text_keywords'] = $this->language->get('text_keywords');
    	$this->data['text_advanced'] = $this->language->get('text_advanced');
  		$this->data['button_search'] = $this->language->get('button_search');
    	
    	
		$this->data['code'] = html_entity_decode($this->config->get('search'));
		
		$this->id = 'search';

		if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/search.tpl')) {
			$this->template = $this->config->get('config_template') . '/template/module/search.tpl';
		} else {
			$this->template = 'default/template/module/search.tpl';
		}
		
		$this->render();
	}
}
?>